<template>
<div>
  <el-upload
      name="file"
      class="avatar-uploader"
      action="http://www.lizihua.xyz/goodsPhoto"
      :show-file-list="false"
      :on-success="handleAvatarSuccess"
      :before-upload="beforeAvatarUpload">
    <img v-if="imageUrl" :src="imageUrl" class="avatar">
    <i v-else class="el-icon-plus avatar-uploader-icon"></i>
  </el-upload>
</div>
</template>

<script>
export default {
  name: "Test2"
}
</script>

<style scoped>

</style>
